package com.young.test.domain;

import org.apache.log4j.Logger;

import java.util.Map;

public class Product {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(Product.class);

	private Map<String, Float> accounts;

	public Map<String, Float> getAccounts() {
		return accounts;
	}

	public void setAccounts(Map<String, Float> accounts) {
		this.accounts = accounts;
	}
	
	public void info(){
		for(Map.Entry<String, Float> entry : accounts.entrySet()){
			logger.info("Account' key is " + entry.getKey());
			logger.info("Account' value is " + entry.getValue());
		}
	}
}
